#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author  : lei.wang
import uuid
from django.db import models


class BaseModel(models.Model):
    """ 基础模型表 """

    id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False, help_text="ID", verbose_name="ID")
    created_time = models.DateTimeField(auto_now_add=True, help_text="创建时间", verbose_name="创建时间")
    updated_time = models.DateTimeField(auto_now=True, help_text="修改时间", verbose_name="修改时间")
    is_deleted = models.BooleanField(default=False, help_text="是否删除", verbose_name="是否删除")

    class Meta:
        abstract = True
